package wang.aweb.childcar.service;

import com.github.pagehelper.PageInfo;
import wang.aweb.childcar.model.pojo.Member;
import wang.aweb.childcar.model.query.MemberParam;
import wang.aweb.childcar.model.req.AvatarNicknameReq;
import wang.aweb.childcar.model.vo.MemberVO;

import java.util.Date;
import java.util.Map;

public interface MemberService {
    Integer doLogin(String openid,String inviteCode);

    MemberVO selectByInviteCode(String inviteCode);

    Integer getAgentUserCount(Integer agentId, Date starttime, Date endtime);

    Integer getUserDayCount();

    Member selectById(Integer userId);

    void updateInfo(AvatarNicknameReq avatarNicknameReq);

    void updateAgentId(Integer id, Integer agentId);

    void consum(Integer id, Integer price);

    void setPhone(String code);

    MemberVO selectByMoblile(String mobile);

    MemberVO selectVOById(Integer memberId);

    PageInfo selectList(Integer page,Integer limit,MemberParam memberParam);

    void disableOrEnable(Integer id);

    void sysAddMoney(Integer id,Integer addMoney);

    MemberVO selectByNickname(String nickname);

    Integer getUserCount();

    void chongzhi(Integer addMoney, Integer memberId);

    Map checkIsReady();
}
